package demo03;

import java.util.ArrayList;
import java.util.Random;

public class work5 {
	public static void main(String[] ages){
	shengCheng();
	
		
	}
	public static void shengCheng(){
		Random r=new Random();
		ArrayList<Integer>list=new ArrayList<Integer>();
		int num=0,num1=0,count=0;
		while(count<6){
			num=r.nextInt(33)+1;
			for(int i=0;i<list.size();i++){
				if(num==list.get(i)){
					num1=list.get(i);
				}
			}
			if(num == num1){
				
			}
			else{
				list.add(num);
				count++;
			}
		}
		System.out.print(list);
	}
}
